app.controller('updateCtr',["$scope","$http","$state","systemService",function($scope,$http,$state,systemService){
	$http({
		method:'post',
		url:'/home'
	}).then(function(data){
		$scope.user=data.data.message;
		$scope.id=data.data.id;
		console.log(data.data);
	})
	$scope.submit=function(){
		systemService.request('/update',{username:$scope.username,password:$scope.password,id:$scope.id}, function(res){
			console.info(res);
		},null);
	}
}])